package com.yunweiweishi.xuhuanpaltform.yuhuan_app.service.imp;

import com.yunweiweishi.xuhuanpaltform.yuhuan_app.dao.EquipmentItemDao;
import com.yunweiweishi.xuhuanpaltform.yuhuan_app.pojo.EquipmentItem;
import com.yunweiweishi.xuhuanpaltform.yuhuan_app.service.EquipmentItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


@Service
@Transactional
public class EquipmentItemServiceImpl implements EquipmentItemService {

    @Autowired
    private EquipmentItemDao equipmentItemDao;

    @Override
    public void addEquipmentItem(EquipmentItem equipmentItem) {


        equipmentItemDao.save(equipmentItem);
    }

    @Override
    public void updateEquipmentItem(EquipmentItem equipmentItem) {
        equipmentItemDao.save(equipmentItem);
    }

    @Override
    public void deleteEquipmentItemById(Long id) {


        equipmentItemDao.deleteById(id);
    }
}
